<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Insert title here</title>
    <style type="text/css">
        table {
            font-size: 13px
        }

        .table_list_name {
            text-align: right
        }
    </style>
    <script type="text/javascript">
        function submitForm() {
            $.ajax({
                       url: "businessUnits-saveOrUpdate?tdate11=" + timeNum(),
                       data: $('#businessUnitsForm').serialize(),
                       success: function (data, textStatus, jqXHR) {
                           var msg = $.parseJSON(data.msg).msg;
                           alert(msg);
                           if ($.parseJSON(data.msg).state == 1) {
                               parent.jw.close();
                           }
                           return false;
                       }
                   });
        }
    </script>
    <jsp:include page="../../head.jsp"/>

</head>
<body>
<form id="businessUnitsForm" onsubmit="javascript:return false;">
    <table style="width: 400px;height: 200px;">
        <tr>
            <td class="table_list_name">经营单位编码：</td>
            <td><input id="COMPANY_CODE" name="companyQp.companyCode" type="text"></td>
        </tr>
        <tr>
            <td class="table_list_name">经营单位名称：</td>
            <td><input id="COMPANY_NAME" name="companyQp.COMPANY_NAME" type="text"></td>
        </tr>
        <tr>
            <td class="table_list_name">经营单位地址：</td>
            <td><input id="COMPANY_ADDRESS" name="companyQp.COMPANY_ADDRESS" type="text"></td>
        </tr>
        <tr>
            <td class="table_list_name">经营单位电话：</td>
            <td><input id="COMPANY_PHONE" name="companyQp.COMPANY_PHONE" type="text"></td>
        </tr>
        <tr>
            <td class="table_list_name">经营单位传真：</td>
            <td><input id="COMPANY_FAX" name="companyQp.COMPANY_FAX" type="text"></td>
        </tr>
        <tr>
            <td align="center" colspan="2">
                <button id="submitBtn" onclick="javascript:submitForm();">保存</button>
                &nbsp;&nbsp;
                <button onclick="javascript:parent.jw.close();">取消</button>
            </td>
        </tr>
    </table>
</form>
</body>
</html>
